{% extends 'student/base.html' %}
{% load static %}

{% block title %}登录-ZZN'S WEBSITE{% endblock title %}
{% block status %}<a href="#" class="text-light nav-link">---</a>{% endblock status %}
{% block main %}

<main>
    <div class="null"></div>
<div class="body container ">
    <div class="text-center">
        <form class="form-signin" action="" method="post">
            {% csrf_token %}
            <img class="mb-4" src="{% static 'student/images/logo.png' %}" alt="" width="80" height="80">
            <h1 class="h3 mb-3 font-weight-normal">Please login</h1>
            <input type="text"  class="form-control" placeholder="User name" name="username" required autofocus>

            <input type="password" class="form-control" placeholder="Password" name="password" required>

            <button class="btn btn-lg btn-primary btn-block" type="submit">Login</button>
        </form>
    </div>
</div>

    {% if warning %}
    <div class="text-center">
        <h3 class="text-warning">用户名不存在或密码错误</h3>
    </div>

    {% endif %}

    </main>
{% endblock main %}
